home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 30 / PC Gamer IT CD 30 2-2.iso / drivers / videodrv / s6326 / DRIVER / OS2 / SBCS.21 / SISINST.CMD < prev    next >
OS/2 REXX Batch file  |  1996-01-31  |  4KB  |  88 lines

  1. /***************************************************************************/
  2. /*                                                                         */
  3. /* Copyright (c) 1995 SiS Corp. Setup Utility                              */
  4. /*                                                                         */
  5. /***************************************************************************/
  6.  
  7. Trace 'O'
  8. Address CMD
  9. '@ECHO ON'
  10.  
  11. /**************/
  12. /* Initialize */
  13. /**************/
  14. Call rxfuncadd sysloadfuncs, rexxutil, sysloadfuncs
  15. Call sysloadfuncs
  16.  
  17. toolpath = ''
  18. bootdrive = Substr(Translate(Value('PATH',,'OS2ENVIRONMENT')),Pos('\OS2\SYSTEM',Translate(Value('PATH',,'OS2ENVIRONMENT')))-2,2)
  19. tooldrive = bootdrive
  20. toolpath=tooldrive||"\SISDRV"
  21.  
  22.  
  23. Say " *------------------------------------------------------------------*"
  24. Say " * SiS Inc. SVGA installation for OS/2 2.1...                       *"
  25. Say " *==================================================================*"
  26. Say " *                                                                  *"
  27. Say " * This installation program will make a directory in boot drive.   *"
  28. Say " * example: md c:\sisdrv                                            *"
  29. Say " *                                                                  *"
  30. Say " *------------------------------------------------------------------*"
  31. "md" ""||bootdrive||"\sisdrv  "
  32.  
  33. Say ""
  34. Say " Copy Files ...........Please Wait"
  35.  
  36. '@ECHO OFF'
  37. "copy svga.exe"  ""||bootdrive||"\os2 > NUL"
  38. "copy frate2.exe" ""||bootdrive||"\os2  > NUL"
  39. "copy ddc.exe" ""||bootdrive||"\os2  > NUL"
  40.  
  41. "copy" "*.* "||toolpath||"\*.* > NUL "
  42. "copy" ""||toolpath||"\sis.in@ "||bootdrive||"\os2\sis.ini > NUL"
  43. "md" ""||toolpath||"\temp > NUL"
  44. ""||bootdrive||""
  45. "cd" ""||toolpath||"\temp > NUL"
  46. ""||bootdrive||"\os2\unpack ..\s768256.dl@ > NUL "
  47. ""||bootdrive||"\os2\unpack ..\ibmvga32.dl@ > NUL"
  48. ""||bootdrive||"\os2\unpack ..\bvhsvga.dl@ > NUL "
  49. ""||bootdrive||"\os2\unpack ..\vga256.dr@  > NUL "
  50. ""||bootdrive||"\os2\unpack ..\vga64k.dr@  > NUL"
  51. ""||bootdrive||"\os2\unpack ..\vga16m.dr@  > NUL"
  52. ""||bootdrive||"\os2\unpack ..\vga256s.dr@ > NUL"
  53. ""||bootdrive||"\os2\unpack ..\vga64ks.dr@ > NUL"
  54. ""||bootdrive||"\os2\unpack ..\vga16ms.dr@ > NUL"
  55. ""||bootdrive||"\os2\unpack ..\vsvga.sy@   > NUL"
  56. "cd .. > NUL"
  57.  
  58.  
  59. /* call sis.cmd to setup the sis icon */
  60. /* 12/18/95 */
  61. /* for fix the problem of Janpanese OS/2 version first install icon error */
  62. If tooldrive <> '' Then Do
  63.   Call SysCreateObject 'WPProgram', 'SiS Setup','<WP_DESKTOP>','OBJECTID=<TK_SISDRV>;EXENAME='||toolpath||'\notebook.exe;PROGTYPE=PM;ICONFILE='||toolpath||'\sis.ico','R'
  64. End
  65.  
  66.  
  67. if "%1"=="" then
  68. ""||toolpath||"\sissetup"
  69. else
  70. ""||toolpath||"\sissetup %1 %2 %3 %4"
  71.  
  72. "del "||toolpath||"\temp\*.drv  > NUL"
  73. "del "||toolpath||"\temp\*.dll  > NUL"
  74. "del "||toolpath||"\temp\*.sys  > NUL"
  75. "rd temp > NUL"
  76.  
  77. '@ECHO ON'
  78. Say ""
  79. Say ""
  80. Say " *---------------------------------------------------------------------*"
  81. Say " * This program will now create a icon for SiS SVGA Display Driver and *"
  82. Say " * its identified components on your desktop.                          *"
  83. Say " *                                                                     *"
  84. Say " * If you want to change resolution, please run system icon of System  *"
  85. Say " * Setup Group in PM or run the SiS Setup icon after reboot.           *"
  86. Say " *---------------------------------------------------------------------*"
  87.  
  88.